package cn.xiaopengstack.domain.task.model;

import cn.xiaopengstack.domain.award.model.valobj.TaskStateVO;
import cn.xiaopengstack.domain.strategy.model.entity.UserEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jiangyangang
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TaskEntity {
    /**
     * 消息主题
     */
    private String topic;

    /**
     * 用户
     */
    private UserEntity user;

    /**
     * 消息主体
     */
    private String message;

    /**
     * 消息ID
     */
    private String messageId;

    /**
     * 任务状态；create-创建、completed-完成、fail-失败
     */
    private TaskStateVO state;
}
